<template>
    <div class="boxs">
        <van-nav-bar title="我的资产" left-arrow @click-left="fun">
            <template #right>
                <van-icon name="ellipsis" size="26" />
            </template>
        </van-nav-bar>
        <div class="box">
            <p>管理我的账户</p>
            <img src="@/assets/person.png" alt="">
        </div>
        <div class="box1">
            <br> <van-cell-group>
                <van-cell title="收货地址管理" value="管理我的地址" is-link @click="fun3"/>
            </van-cell-group><br>
            <div class="dv">
                <van-cell title="账户与安全" value="密码/实名认证等管理"  is-link @click="fun1"/>
                <van-cell title="京豆支付密码" value="去设置" is-link />
                <van-cell title="隐私设置" value="" is-link @click="fun2"/>
            </div><br>
            <div>
                <van-cell title="联系客服" value="即时解答用户疑难"  is-link/>
                <van-cell title="切换站点" value="内容" is-link/>
            </div>
        </div>
        <div class="box2">
            <div class="box3">
                <div class="box4">
                    <van-icon name="column" size="20"/>
                    <span>意见反馈</span>
                </div>
                <div class="box4">
                    <van-icon name="shop-collect" size="20"/>
                    <span>京东客户端</span>
                </div>
                <div class="box4" @click="fun4">
                    <van-icon name="manager" size="20"/>
                    <span>退出登录</span>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import Vue from 'vue';
import { Toast } from 'vant';

Vue.use(Toast);
export default {
    data(){
        return{

        }
    },
    methods:{
        fun(){
            this.$router.push('/MyJD')
        },
        fun1(){
            this.$router.push('/mysecurity')
           
        },
        fun2(){
            this.$router.push('/privacys')
        },
        fun3(){
            this.$router.push('/Myaddress')
        },
        fun4(){
            sessionStorage.removeItem('token')
            
            Toast('退出成功，即将返回主页');
            this.$router.push('/MyHome')
        }
    }

}
</script>

<style scoped>
.box {
    width: 94%;
    margin: auto;

}

.box img {
    width: 100%;
}

.box1 {
    background: #f5f5f5;
}

.box2 {
    background: #f5f5f5;
    width: 100%;
    height: 1000px;
}

.box3 {
    height: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: #666;
}
.box4{
    display: flex;
    align-items: center;
}
</style>